package pl.koziolekweb.prusakolep.controllers;

import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.Map;

/**
 * 
 * @author bartlomiejk
 * 
 * 
 *         $Id: WelcomeController.java 128 2009-02-20 12:14:15Z bjkuczynski $
 */
public class WelcomeController implements Controller {

	public void action(Map<String, Object> params) {
		try {
			OutputStreamWriter osw = new OutputStreamWriter(System.out, Charset
					.defaultCharset().name());
			osw.write("Prusakolep\nSystem obsługi błędów\nWitamy");
			osw.flush();
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
}
